﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="formSearchRight.ascx.cs" Inherits="VISS.Web.Frontend.Modules.User.Profile.FormSearchRightControl" %>

<%@ Import Namespace="VISS.Web.Frontend" %>
<%@ Import Namespace="VISS.API.Users" %>

<div id="search-box" class="form">
    <div class="brd-list">
        <h2 class="header">Tìm kiếm nhanh</h2>
        <div class="search-field">
            <div class="field">
                <label class="title">Giới tính:</label>
                <div class="right">
                    <% if (Gender == EUserGender.Male) { %>
                        <input type="radio" name="SearchGender" id="SearchGenderMale" value="<%=EUserGender.Male %>" checked="checked" /><label class="genre" for="SearchGenderMale">Nam</label>
                        <input type="radio" name="SearchGender" id="SearchGenderFemale" value="<%=EUserGender.Female %>" /><label class="genre" for="SearchGenderFemale">Nữ</label>
                    <% } else if (Gender == EUserGender.Female) { %>
                        <input type="radio" name="SearchGender" id="SearchGenderMale" value="<%=EUserGender.Male %>" /><label class="genre" for="SearchGenderMale">Nam</label>
                        <input type="radio" name="SearchGender" id="SearchGenderFemale" value="<%=EUserGender.Female %>" checked="checked" /><label class="genre" for="SearchGenderFemale">Nữ</label>
                    <% } else { %>
                       <input type="radio" name="SearchGender" id="SearchGenderMale" value="<%=EUserGender.Male %>" /><label class="genre" for="SearchGenderMale">Nam</label>
                        <input type="radio" name="SearchGender" id="SearchGenderFemale" value="<%=EUserGender.Female %>" /><label class="genre" for="SearchGenderFemale">Nữ</label>
                    <% } %>
                </div>
            </div>
            <div class="field">
                <label class="title">Tỉnh thành:</label>
                <div class="right">
                    <select class="select select-city" name="SearchCity" id="SearchCity">
                        <%=SelectCtrlBuilder.ToSlCitiesForSearch(CityID)%>
                    </select>
                </div>
            </div>
            <div class="field">
                <label class="title">Nghề nghiệp:</label>
                <div class="right">
                   <select class="select select-job" name="SearchJob" id="SearchJob">
                        <%=SelectCtrlBuilder.ToSlJobForSearch(JobID)%>
                    </select>
                </div>
            </div>
            <div class="field">
                <label class="title">Tuổi:</label>
                <div class="right">
                    <label>Từ: </label><input type="text" class="input input-age" name="SearchFromAge" id="SearchFromAge" value="<% if(FromAge > 0) Response.Write(FromAge); %>" />
                    <label>Đến: </label><input type="text" class="input input-age" name="SearchToAge" id="SearchToAge" value="<% if(ToAge > 0) Response.Write(ToAge); %>" />
                </div>
            </div>
            <div class="field">
                <label class="title">&nbsp;</label>
                <div class="right">
                    <input type="button" id="btn-Search" name="btn-Search" src="<%=AppSettings.ResourcesPath %>/images/button-search.jpg" alt="Tìm kiếm" />
                </div>
            </div>
        </div>
    </div>
</div>